-- GENERATED SPELL FOR [Winterskorn Hunter] --


function spell0_26663(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(18651,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26663', 611, 1)
end

function spell1_26663(pUnit, Event) --@Rapid Fire,Self--
pUnit:FullCastSpellOnTarget(36828,pUnit)
pUnit:RegisterEvent('Sorts_26663', 10310, 1)
end

function spell2_26663(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26663', 602, 1)
end

function Sorts_26663(pUnit, Event)
local choix_sorts_26663 = math.random(0, 2)
if choix_sorts_26663 == 0 then
pUnit:RegisterEvent('spell0_26663', 1, 1)
end
if choix_sorts_26663 == 1 then
pUnit:RegisterEvent('spell1_26663', 1, 1)
end
if choix_sorts_26663 == 2 then
pUnit:RegisterEvent('spell2_26663', 1, 1)
end
end

function mob26663_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26663', math.random(1500, 3000), 1)
end

function mob26663_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26663_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26663_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26663, 1, 'mob26663_Action')
RegisterUnitEvent(26663, 2, 'mob26663_Leave')
RegisterUnitEvent(26663, 3, 'mob26663_Kill')
RegisterUnitEvent(26663, 4, 'mob26663_Die')
